
#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for ref_cof @(#)Makefile	1.1 5/21/87 ESI
 	
CFLAGS = -DSCCS -O
SPSLIB = /usr/lib/libsps.a
MANDIR = /usr/sps/man
SINC   = /usr/include/sps
BINDIR = /usr/sps/bin
OLDBIN = /usr/sps/bin/old
LINT = att lint
PROGMOD = 0750
MANMOD = 0640

OBJS =	    ref_cof.o rctoc.o genburg.o

SRCS =	    ref_cof.c rctoc.c genburg.c

ref_cof:	    $(OBJS) $(SPSLIB)
	    cc -o ref_cof $(CFLAGS) $(OBJS) -lsps -lm

ref_cof.c:   $(SINC)/sps.h $(SINC)/anafea.h $(SINC)/fea.h $(SINC)/sd.h


install: ref_cof
	-mv -f $(BINDIR)/ref_cof $(OLDBIN)/ref_cof
	-chmod $(PROGMOD) $(OLDBIN)/ref_cof
	-rm -f $(BINDIR)/ref_cof
	mv ref_cof $(BINDIR)/ref_cof
	-strip $(BINDIR)/ref_cof
	chmod $(PROGMOD) $(BINDIR)/ref_cof
	-diffmk  $(MANDIR)/man1/ref_cof.1 ref_cof.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/ref_cof.1
	cp ref_cof.1 $(MANDIR)/man1/ref_cof.1
	chmod $(MANMOD) $(MANDIR)/man1/ref_cof.1

lint:	ref_cof.c
	$(LINT) $(LINTFLAGS) $(SRCS) -lsps -lm > lint

clean: 
	rm -f *.o ref_cof
